#ifndef CODEEDIT_H
#define CODEEDIT_H

#include <QTextEdit>

class Highlighter;

class CodeEdit : public QTextEdit
{
    Q_OBJECT
public:
    explicit CodeEdit(QWidget *parent = 0);

    bool findFunctionDeclaration(const QString &func);

protected:
    virtual void keyPressEvent(QKeyEvent *e);

private:
    Highlighter *highlighter;
};

#endif // CODEEDIT_H
